﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Master/AdminMaster.Master" AutoEventWireup="true"
    CodeBehind="CustomGoodsDealCheck.aspx.cs" Inherits="HZ.DrugTrade.Web.Admin.BidProdManage.CustomGoodsDealCheck"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script language="javascript">

        function switchType() {
            if (this.document.getElementById('ctl00_ContentPlaceHolder1_ddlType').value == "1") {
                this.document.getElementById('projectDiv').style.display = 'inline';
                this.document.getElementById('projectDiv1').style.display = 'none';

            }
            else {

                this.document.getElementById('projectDiv').style.display = 'none';
                this.document.getElementById('projectDiv1').style.display = 'inline';
                 
            }
        }

    </script>

    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="maincon">
        <div class="note">
            产品基本信息</div>
        <div class="note2">
        </div>
        <table>
            <tr>
                <th style="width: 120px;">
                    产品名称：
                </th>
                <td>
                    <asp:TextBox ID="txtGoodsName" runat="server"></asp:TextBox>
                    <br />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtGoodsName"
                        Display="Dynamic" ErrorMessage="请输入产品名称！"></asp:RequiredFieldValidator>
                </td>
                <th style="width: 120px;">
                    规格型号：
                </th>
                <td>
                    <asp:TextBox ID="txtOutlookc" runat="server"></asp:TextBox>
                    <br />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtOutlookc"
                        Display="Dynamic" ErrorMessage="请输入规格型号！"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <th style="width: 120px;">
                    材质:
                </th>
                <td>
                    <asp:TextBox ID="txtMaterial" runat="server"></asp:TextBox>
                    <br />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtMaterial"
                        Display="Dynamic" ErrorMessage="请输入材质！"></asp:RequiredFieldValidator>
                </td>
                <th style="width: 120px;">
                    单位：
                </th>
                <td>
                    <asp:TextBox ID="txtUnit" runat="server" Width="50px"></asp:TextBox>
                </td>
            </tr>
<%--            <tr>
                
                <th style="width: 120px;">
                    转换系数：
                </th>
                <td>
                    <asp:TextBox ID="txtFactor" runat="server" Width="50px"></asp:TextBox>
                    <br />
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtFactor"
                        Display="Dynamic" ErrorMessage="请输入正确的数字格式！" ValidationExpression="\d+$"></asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtFactor"
                        Display="Dynamic" ErrorMessage="请输入正确的数字格式！"></asp:RequiredFieldValidator>
                </td>
            </tr>--%>
            <tr>
                <th style="width: 120px;">
                    包装单位：
                </th>
                <td>
                    <asp:TextBox ID="txtPackUnit" runat="server" Width="50px"></asp:TextBox>
                </td>
                <th style="width: 120px;">
                    生产企业：
                </th>
                <td>
                    <asp:TextBox ID="txtCompanyName" runat="server" Width="200px"></asp:TextBox>
                    <br />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtCompanyName"
                        Display="Dynamic" ErrorMessage="请输入生产企业！"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <th style="width: 120px;">
                    配送企业：
                </th>
                <td align="right">
                    <asp:Label ID="lblNote" runat="server"></asp:Label>
                </td>
                <th style="width: 120px;">
                    产品分类：
                </th>
                <td>
                    <asp:DropDownList ID="dplSort" runat="server">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="dplSort"
                        Display="Dynamic" ErrorMessage="请选择产品分类。"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <th style="width: 120px;">
                    产品类别：
                </th>
                <td>
                    <asp:DropDownList ID="dplLevel" runat="server">
                        <asp:ListItem Text="==请选择产品类别==" Value="" ></asp:ListItem>
                        <asp:ListItem Text="国产" Value="国产"></asp:ListItem>
                        <asp:ListItem Text="进口" Value="进口"></asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="dplLevel"
                        Display="Dynamic" ErrorMessage="请选择产品类别。"></asp:RequiredFieldValidator>
                </td>
                <th style="width: 120px;">
                    采购价格：
                </th>
                <td>
                    <asp:TextBox ID="txtLimitPrice" runat="server" Width="50px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtLimitPrice"
                        Display="Dynamic" ErrorMessage="请输入正确的金额！"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtLimitPrice"
                        Display="Dynamic" ErrorMessage="请输入正确的金额！" ValidationExpression="^\d+(\.\d+)?$"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <th style="width: 120px">
                    零售价格：
                </th>
                <td colspan="3">
                    <asp:Label ID="lblSMMPrice" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    <div class="maincon">
        <table>
            <tr>
                <th style="width: 120px;">
                    <asp:Label ID="Label1" runat="server" Text="产品来源："></asp:Label>
                </th>
                <td>
                    <asp:RadioButtonList ID="rblSource" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <asp:ListItem Value="3" Selected="True">备案采购</asp:ListItem>
                        <%--   <asp:ListItem Value="2">未中标</asp:ListItem>--%>
                    </asp:RadioButtonList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="rblSource"
                        ErrorMessage="请选择产品来源！"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr id="trZX" runat="server" visible="false">
                <th style="width: 120px;">
                    审核盟市：
                </th>
                <td>
                    <asp:Label ID="lblStatusMs" runat="server" Text=""></asp:Label>
                </td>
            </tr>
            <tr>
                <th style="width: 120px;">
                    <asp:Label ID="lblType" runat="server" Text="审核类型："></asp:Label>
                </th>
                <td>
                    <asp:DropDownList ID="ddlType" runat="server" onchange="switchType();">
                        <asp:ListItem Selected="True" Value="0">通过</asp:ListItem>
                        <asp:ListItem Value="1">不通过</asp:ListItem>
                    </asp:DropDownList>
                    <div id="projectDiv1" style="display: inline;">
                        <asp:CheckBox ID="ckbProcure" runat="server" Text="同时添加到采购目录" Checked="True" ForeColor="Red" />
                        &nbsp;
                        <asp:DropDownList ID="dplProject" runat="server">
                        </asp:DropDownList>
                        <br>
                    </div>
                    <div id="projectDiv" style="display: inline;">
                        &nbsp; 未通过理由 ：<asp:TextBox ID="txtAuditNote" runat="server" Width="463px" ></asp:TextBox>
                    </div>
                    <div id="reasonDiv" style="display: block; margin-top: 4px">
                        <asp:TextBox ID="txtReason" runat="server" Width="260px" Height="48px" TextMode="MultiLine"></asp:TextBox>
                        <span style="color: #888888">填写审核备注！</span></div>
                </td>
            </tr>
        </table>
    </div>
    <div class="listctrl">
        <hz:HzButton ID="btnSearch" runat="server" CssClass="btn" Text="查询类似产品" ToolTip=""
            OnClick="btnSearch_Click" CausesValidation="False" Width="85px" />
        &nbsp; &nbsp;
        <hz:HzButton ID="btnSave" runat="server" CssClass="btn" Text="审核" ToolTip="" OnClick="btnSave_Click" />
        &nbsp; &nbsp;&nbsp;&nbsp;
        <input class="btn" onclick="javascript:window.location.href='<%=this.ReturnUrl %>'"
            type="button" value="返回" /></div>
    <div class="listip">
        <ul>
            <li>提示：<span>请查看下列类似的产品列表（红色条目为精确匹配产品），以确定产品库中是否存在该产品。</span></li>
        </ul>
    </div>
    <div class="maincon">
        <div class="note">
            系统产品库中类似的产品</div>
        <div class="note2">
        </div>
    </div>
    <asp:GridView ID="gvwBidDrug" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无符合条件的数据！" OnRowDataBound="gvwBidDrug_RowDataBound">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1+AspNetPager1.PageSize*(AspNetPager1.CurrentPageIndex-1)  %></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="GoodsName" HeaderText="产品名称" />
            <asp:BoundField DataField="Outlookc" HeaderText="规格型号" />
            <asp:BoundField DataField="Material" HeaderText="材质" />
            <asp:BoundField DataField="Unit" HeaderText="最小计量单位" />
            <asp:BoundField DataField="PackUnit" HeaderText="包装单位" />
            <asp:TemplateField HeaderText="产品属性">
                <%-- add by lhl 209-08-27--%>
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# HZ.DrugTrade.Web.Function.FormatDrugSource( Eval("Source")) %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="CompanyName_SC" HeaderText="生产企业" />
            <asp:BoundField DataField="LimitPrice" HeaderText="政府限价" DataFormatString="{0:F}" />
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <script language="javascript">
         switchType();
    </script>
</asp:Content>
